// packageI/invoice/components/childInvoiced/childInvoiced.js
const app = getApp();
Component({
  options: {
    styleIsolation: 'shared'
  },
  properties: {
    invoiceType: {
      type: [String, Number],
      value: 1 
    },
    invoiceList: {
      type: Array,
      value: []
    },
    loading: {
      type: Boolean,
      value: false
    },
    finshed: {
      type: Boolean,
      value: false
    }
  },

  data: {
  },

  lifetimes: {
    attached () {
      let language = wx.getStorageSync('langIndex');
      this.setData({ 'language': language.en});
    },
  },

  methods: {
    //跳转到对应的订单详情
    goOrderdetail(e) {
      let orderid = e.currentTarget.dataset.orderid;
      // orderType=shop 自营类型订单
      wx.navigateTo({
        url: "/packageA/member/orderdetail/orderdetail?order_id=" + orderid + "&orderType=shop",
      });
    },

    toInvoiceDetail (e) {
      let invoice_id = e.currentTarget.dataset.invoiceid;
      wx.navigateTo({
        url: '/packageI/invoice/invoice-details/invoice-details?invoice_id=' + invoice_id,
      })
    },
  }
})
